package com.ty.tour.mapper;


import com.ty.tour.common.utils.MyMapper;
import com.ty.tour.pojo.Orders;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Author is ***
 * @since 2020-03-19
 */
public interface OrderMapper extends MyMapper<Orders> {

    List<Orders> userOrder(@Param("userId") Integer userId);

    boolean save(Orders order);

    Integer deleteSingle(@Param("orderId") Integer orderId);
}
